﻿using DevFramework.Entities.Concrete;
using FluentNHibernate.Mapping;

namespace DevFramework.DataLayer.Concrete.NHibernate.Mapping
{
    public class VProductMap : ClassMap<VProduct>
    {
        public VProductMap()
        {
            ReadOnly();

            Table("VProduct");

            Id().Column("Id");

            Map(x => x.ProductName);

            Map(x => x.CategoryName);
        }
    }
}
